import { defineComponent } from "vue";
import style from "./index.module.less";
export default defineComponent({
  props: {
    text: {
      type: String,
      default: "",
    },
    marginTop: {
      type: String,
      default: "",
    },
  },
  setup(props, { slots }) {
    const renderBox = () => {
      return (
        <div class={[style["public"]]} style={{ marginTop: props.marginTop }}>
          <div class={["font--t6 mb-10"]}>{props.text}</div>
          {slots.default?.()}
        </div>
      );
    };
    return () => <div>{renderBox()}</div>;
  },
});
